<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="custom" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="/WEB-INF/css/stylesheet.css">
	<title>Log in</title>
</head>
	<body>
		<div class="body">
			<div id="topBar">
				<div id="pageTitle">
					Login
				</div>
			</div>
			<custom:menuBar/>
			<div id="loginForm">
				<form id="loginForm" method="POST" action="Login">
					<c:if test="${error != null}">
						<div id="error">
							* ${error}
						</div>
					</c:if>
					<table>
						<tr>
							<td>
								Email/Username :
							</td>
							<td>
								<input type="text" name="username"/>
							</td>
						</tr>
						<tr>
							<td>
								Password :
							</td>
							<td>
								<input type="password" name="password"/>
							</td>
						</tr>
						<c:if test="${logError != null }">
							<tr>
								<td>
									<div id="logError">* ${logError}</div>
								</td>
							</tr>
						</c:if>
					</table>
					<input type="submit" value="Login"/>
				</form>
				<div id="createUserLink">
					<a href="NewUser">Create new account</a>
				</div>
			</div>
		</div>
	</body>
</html>